//
//  MDGameCell.swift
//  麦兜直播
//
//  Created by yeqingyu on 16/10/16.
//  Copyright © 2016年 yeqingyu. All rights reserved.
//

import UIKit

class MDGameCell: UICollectionViewCell {
    
    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var title: UILabel!
    @IBOutlet weak var line: UIView!
    
    var homeGroup:MDHomeGroup?{
        didSet{
            print(homeGroup?.tag_name)
            title.text = homeGroup?.tag_name
            let url  = URL(string: homeGroup?.icon_url ?? "")
            iconView.kf.setImage(with: url, placeholder: UIImage(named: "home_more_btn"))
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        iconView.layer.cornerRadius = 20
        iconView.layer.masksToBounds = true
    }

}
